<div class="panel panel-default panel-intro">

    <div class="panel-heading">
        <div class="panel-lead"><em>功能配置</em>根据实际应用场景选择性填写</div>
        <div class="alert alert-warning-light">
            <p>下单打印支持的变量如下：</p>
            <p>${orderNo}=订单号，${giftName}=礼品名称，${giftType}=礼品类型，${gainMethod}=领取方式，${userName}=收件人</p>
            <p>${userPhone}=手机号，${expressCompany}=快递公司，${expressNumber}=快递单号，${expressPhone}=快递手机号</p>
        </div>
        <ul class="nav nav-tabs">
            <li class="active"><a href="#tab-feie" data-toggle="tab">{:__('飞鹅')}</a></li>
            <li><a href="#tab-yilianyun" data-toggle="tab">{:__('易联云')}</a></li>
            <li><a href="#tab-zhongwu" data-toggle="tab">{:__('中午')}</a></li>
        </ul>
    </div>

    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="tab-feie">
                <div class="widget-body no-padding">
                    <div class="alert alert-warning-light">
                        <p>模板参考：http://help.feieyun.com/document.php</p>
                    </div>
                    <form id="feie-form" class="edit-form form-horizontal" role="form" data-toggle="validator" method="POST">
                        <table class="table table-striped">
                            <tbody>
                                <tr>
                                    <td width="20%">USER</td>
                                    <td>
                                        <div class="row">
                                            <div class="col-sm-8 col-xs-12">
                                                <input id="c-feie-user" class="form-control" type="text" name="row[feie][user]" title="" value="{$row.feie.user|default=''}" placeholder="选填" data-tip="如果是小程序方式使用，则必填">
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>KEY</td>
                                    <td>
                                        <div class="row">
                                            <div class="col-sm-8 col-xs-12">
                                                <input id="c-feie-key" class="form-control" type="text" name="row[feie][key]" title="" value="{$row.feie.key|default=''}" placeholder="选填" data-tip="如果是小程序方式使用，则必填">
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>{:__('IP')}</td>
                                    <td>
                                        <div class="row">
                                            <div class="col-sm-8 col-xs-12">
                                                <input id="c-feie-ip" class="form-control" type="text" name="row[feie][ip]" title="" value="{$row.feie.ip|default=''}" placeholder="选填" data-tip="如果是小程序方式使用，则必填">
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>{:__('PORT')}</td>
                                    <td>
                                        <div class="row">
                                            <div class="col-sm-8 col-xs-12">
                                                <input id="c-feie-port" class="form-control" type="text" name="row[feie][port]" title="" value="{$row.feie.port|default=''}" placeholder="选填" data-tip="如果是小程序方式使用，则必填">
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>{:__('PATH')}</td>
                                    <td>
                                        <div class="row">
                                            <div class="col-sm-8 col-xs-12">
                                                <input id="c-feie-path" class="form-control" type="text" name="row[feie][path]" title="" value="{$row.feie.path|default=''}" placeholder="选填" data-tip="如果是小程序方式使用，则必填">
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td>{:__('下单打印模板')}</td>
                                    <td>
                                        <div class="row">
                                            <div class="col-sm-8 col-xs-12">
                                                <textarea id="c-feie-order_template" class="form-control" name="row[feie][order_template]" title="" placeholder="必填" style="min-height: 240px">{$row.feie.order_template|default=''}</textarea>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                            <tfoot>
                            <tr>
                                <td></td>
                                <td>
                                    <div class="layer-footer">
                                        <div style="margin: 0 30px;">
                                            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
                                            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            </tfoot>
                        </table>
                    </form>
                </div>
            </div>
            <div class="tab-pane fade" id="tab-yilianyun">
                <div class="widget-body no-padding">
                    <div class="alert alert-warning-light">
                        <p>模板参考：https://dev.yilianyun.net/printtemplate</p>
                    </div>
                    <form id="yilianyun-form" class="edit-form form-horizontal" role="form" data-toggle="validator" method="POST">
                        <table class="table table-striped">
                            <tbody>
                            <tr>
                                <td width="20%">{:__('AppId')}</td>
                                <td>
                                    <div class="row">
                                        <div class="col-sm-8 col-xs-12">
                                            <input id="c-yilianyun-app_id" class="form-control" type="text" name="row[yilianyun][app_id]" title="" value="{$row.yilianyun.app_key_id|default=''}" placeholder="" data-tip="">
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>{:__('AppSecret')}</td>
                                <td>
                                    <div class="row">
                                        <div class="col-sm-8 col-xs-12">
                                            <input id="c-yilianyun-app_secret" class="form-control" type="text" name="row[yilianyun][app_secret]" title="" value="{$row.yilianyun.app_key_secret|default=''}" placeholder="" data-tip="">
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>{:__('下单打印模板')}</td>
                                <td>
                                    <div class="row">
                                        <div class="col-sm-8 col-xs-12">
                                            <textarea id="c-yilianyun-order_template" class="form-control" name="row[yilianyun][order_template]" title="" placeholder="必填" style="min-height: 240px">{$row.yilianyun.order_template|default=''}</textarea>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            </tbody>
                            <tfoot>
                            <tr>
                                <td></td>
                                <td>
                                    <div class="layer-footer">
                                        <div style="margin: 0 30px;">
                                            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
                                            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            </tfoot>
                        </table>
                    </form>
                </div>
            </div>
            <div class="tab-pane fade" id="tab-zhongwu">
                <div class="widget-body no-padding">
                    <div class="alert alert-warning-light">
                        <p>模板参考：http://www.zhongwu.co/platformPrintTemplate.html#list2</p>
                    </div>
                    <form id="zhongwu-form" class="edit-form form-horizontal" role="form" data-toggle="validator" method="POST">
                        <table class="table table-striped">
                            <tbody>
                            <tr>
                                <td width="20%">{:__('AppId')}</td>
                                <td>
                                    <div class="row">
                                        <div class="col-sm-8 col-xs-12">
                                            <input id="c-zhongwu-app_id" class="form-control" type="text" name="row[zhongwu][app_id]" title="" value="{$row.zhongwu.app_id|default=''}" placeholder="" data-tip="">
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>{:__('AppSecret')}</td>
                                <td>
                                    <div class="row">
                                        <div class="col-sm-8 col-xs-12">
                                            <input id="c-zhongwu-app_secret" class="form-control" type="text" name="row[zhongwu][app_secret]" title="" value="{$row.zhongwu.app_secret|default=''}" placeholder="" data-tip="">
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>{:__('下单打印模板')}</td>
                                <td>
                                    <div class="row">
                                        <div class="col-sm-8 col-xs-12">
                                            <textarea id="c-zhongwu-order_template" class="form-control" name="row[zhongwu][order_template]" title="" placeholder="必填" style="min-height: 240px">{$row.zhongwu.order_template|default=''}</textarea>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            </tbody>
                            <tfoot>
                            <tr>
                                <td></td>
                                <td>
                                    <div class="layer-footer">
                                        <div style="margin: 0 30px;">
                                            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
                                            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            </tfoot>
                        </table>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>